package com.linkage.seapeak.pojo;

import android.content.Intent;
import android.text.TextUtils;

import java.io.Serializable;

public class CrediterUser implements Serializable {


    private String id;
    // 接口名称不规范
    private String creditorName;
    private String creditorname;

    private String creditorid;
    private String creditorId;
    private String sysUserId;
    private String sysUserid;
    private String avatar;

    public CrediterUser() {
    }

    public CrediterUser(String id) {
        this.id = id;
    }

    public int getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(int onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

    private int onlineStatus;
    private double amountdeclared;

    private int committeeChairman;
    private String bankruptcyProjectId;
    private String voteId;
    private double confirmedMoney;
    private double voteMoney;
    private String groupId;
    private boolean meeting;
    private int meetingTime;
    private boolean vote;
    private int voteTime;
    private int voteOpinion;
    private String supplementOpinion;
    private boolean allowChange;
    private int meetingNumber;
    private int memberType;

    private Object kindTax;
    private Object kindGuarantee;
    private Object kindOther;
    private Object kindOrdinary;
    private double confirmAmount;
    
    /**
     * adapter记录是否选择
     */
    public boolean isCheck = false;

    public boolean declareAsVote;

    public boolean isDeclareAsVote() {
        return declareAsVote;
    }

    public void setDeclareAsVote(boolean declareAsVote) {
        this.declareAsVote = declareAsVote;
    }

    /**
     * bankruptcyProjectId : c316f2035b994ab696889fb084b9d235
     * voteId : d8b7336332024acbbeae12238695ba97
     * confirmedMoney : 2353
     * voteMoney : 3465
     * groupId : 48752f4d9c41411a89f4d352d3b4b616
     * meeting : true
     * meetingTime : 1554968037
     * vote : true
     * voteTime : 1554967406
     * voteOpinion : 1
     * supplementOpinion : 测试1
     * allowChange : false
     * meetingNumber : 2
     */







//    CREDITOR-债权人
//    STAFF-职工代表
//    CONTRIBUTOR-投资人
    private String role;

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public double getConfirmAmount() {
        return confirmAmount;
    }

    public void setConfirmAmount(double confirmAmount) {
        this.confirmAmount = confirmAmount;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreditorname() {
        if (!TextUtils.isEmpty(creditorName))
            return creditorName;
        else
            return creditorname;
    }

    public void setCreditorName(String creditorName) {
        this.creditorName = creditorName;
    }

    public void setCreditorname(String creditorname) {
        this.creditorname = creditorname;
    }

    public String getCreditorid() {
        if (!TextUtils.isEmpty(creditorId))
            return creditorId;
        else if (!TextUtils.isEmpty(creditorid))
            return creditorid;
        else if (!TextUtils.isEmpty(id))
            return id;
        else return "";
    }

    public void setCreditorid(String creditorid) {
        this.creditorid = creditorid;
    }

    public String getSysUserId() {
        if (!TextUtils.isEmpty(sysUserId))
            return sysUserId;
        else if (!TextUtils.isEmpty(sysUserid))
            return sysUserid;
        else return "";
    }

    public void setSysUserId(String sysUserId) {
        this.sysUserId = sysUserId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public double getAmountdeclared() {
        return amountdeclared;
    }

    public String getBankruptcyProjectId() {
        return bankruptcyProjectId;
    }

    public void setBankruptcyProjectId(String bankruptcyProjectId) {
        this.bankruptcyProjectId = bankruptcyProjectId;
    }

    public String getVoteId() {
        return voteId;
    }

    public void setVoteId(String voteId) {
        this.voteId = voteId;
    }

    public double getConfirmedMoney() {
        return confirmedMoney;
    }

    public void setConfirmedMoney(double confirmedMoney) {
        this.confirmedMoney = confirmedMoney;
    }

    public void setAmountdeclared(double amountdeclared) {
        this.amountdeclared = amountdeclared;
    }

    public double getVoteMoney() {
        return voteMoney;
    }

    public void setVoteMoney(double voteMoney) {
        this.voteMoney = voteMoney;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public boolean isMeeting() {
        return meeting;
    }

    public void setMeeting(boolean meeting) {
        this.meeting = meeting;
    }

    public int getMeetingTime() {
        return meetingTime;
    }

    public void setMeetingTime(int meetingTime) {
        this.meetingTime = meetingTime;
    }

    public boolean isVote() {
        return vote;
    }

    public void setVote(boolean vote) {
        this.vote = vote;
    }

    public int getVoteTime() {
        return voteTime;
    }

    public void setVoteTime(int voteTime) {
        this.voteTime = voteTime;
    }

    public int getVoteOpinion() {
        return voteOpinion;
    }

    public void setVoteOpinion(int voteOpinion) {
        this.voteOpinion = voteOpinion;
    }

    public String getSupplementOpinion() {
        return supplementOpinion;
    }

    public void setSupplementOpinion(String supplementOpinion) {
        this.supplementOpinion = supplementOpinion;
    }

    public boolean isAllowChange() {
        return allowChange;
    }

    public void setAllowChange(boolean allowChange) {
        this.allowChange = allowChange;
    }

    public int getMeetingNumber() {
        return meetingNumber;
    }

    public void setMeetingNumber(int meetingNumber) {
        this.meetingNumber = meetingNumber;
    }

    public int getKindTax() {
        if (kindTax instanceof Double)
            return ((Double) kindTax).intValue();
        else if (kindTax instanceof Boolean)
            return ((Boolean) kindTax) ? 1 : 0;
        else if (kindTax instanceof Integer)
            return (int) kindTax;
        else
            return 0;
    }

    public void setKindTax(int kindTax) {
        this.kindTax = kindTax;
    }

    public int getKindGuarantee() {
        if (kindGuarantee instanceof Double)
            return ((Double) kindGuarantee).intValue();
        else if (kindGuarantee instanceof Boolean)
            return ((Boolean) kindGuarantee) ? 1 : 0;
        else if (kindGuarantee instanceof Integer)
            return (int) kindGuarantee;
        else
            return 0;
    }

    public void setKindGuarantee(int kindGuarantee) {
        this.kindGuarantee = kindGuarantee;
    }

    public int getKindOther() {
        if (kindOther instanceof Double)
            return ((Double) kindOther).intValue();
        else if (kindOther instanceof Boolean)
            return ((Boolean) kindOther) ? 1 : 0;
        else if (kindOther instanceof Integer)
            return (int) kindOther;
        else
            return 0;
    }

    public void setKindOther(int kindOther) {
        this.kindOther = kindOther;
    }

    public int getKindOrdinary() {
        if (kindOrdinary instanceof Double)
            return ((Double) kindOrdinary).intValue();
        else if (kindOrdinary instanceof Boolean)
            return ((Boolean) kindOrdinary) ? 1 : 0;
        else if (kindOrdinary instanceof Integer)
            return (int) kindOrdinary;
        else
            return 0;
    }

    public void setKindOrdinary(int kindOrdinary) {
        this.kindOrdinary = kindOrdinary;
    }
    public int getCommitteeChairman() {
        return committeeChairman;
    }

    public void setCommitteeChairman(int committeeChairman) {
        this.committeeChairman = committeeChairman;
    }


    public int getMemberType() {
        return memberType;
    }

    public void setMemberType(int memberType) {
        this.memberType = memberType;
    }

    /**
     * kindTax : false
     * kindGuarantee : false
     * kindOther : false
     * kindOrdinary : false
     */
}
